import { post, get, del, put } from "./request";

// /v2/api-docs

//填写问诊卡接口
export const ConsultationAPI = (data) => get("/api/InterrogationPeopleController/insert", data);

//查看购物车列表
export const CartAPI = () => get("/api/OmsCarController/findAllCar");

//添加购物车
export const AddCartAPI = (data) => get("/api/OmsCarController/insertOmsCar",data);

//取消订单
export const CancelOrderAPI = (data) => get("/api/OmsOrderController/deleteorder",data);

//查询订单列表
export const OrderListAPI = (data) => get("/api/OmsOrderController/findAllOrderItem",data);

//生成订单
export const AddOrderAPI = (data) => get("/api/OmsOrderController/insertOrder",data);

//查询订单详情
export const QueryOrderAPI = (data) => post("/api/OmsOrderController/selectOrder",data);

//医美百科一级二级联合分类
export const getAllBrand12API = () => get("/api/PmsBrand2Controller/getAllBrand12");

//医美百科二级分类
export const getAllBrand2API = (id) => get("/api/PmsBrand2Controller/getAllBrand2",id);

//三级分类查询
export const getAllBrand3API = (id) => get("/api/PmsBrand3Controller/getAllBrand3",id);

//商品一级分类
export const GoodClassAPI = () => get("/api/getAllBrand");

//领取优惠券
export const CouponAPI = (data) => post("/api/PmsCouponsAdminController/insertCouponsById",data);

//查询所有优惠券
export const CouponListAPI = () => post("/api/PmsCouponsController/selectAllCoupons");

//查询用户优惠券
export const CouponItemListAPI = (id) => post("/api/PmsCouponsController/selectCouponsById",id);

//获取用户信息
export const GetInformationAPI = (name) => get("/api/admin/info",name);

//用户登录
export const LoginAPI = (data) => post("/api/admin/login",data);

//注销账号
export const LoginOffAPI = (userPhone) => post("/api/admin/logoff",userPhone);

//用户退出登录
export const LoginOutAPI = () => post("/api/admin/logout");

//用户注册
export const RegisterAPI = (data) => post("/api/admin/register",data);

//发送验证码
export const SendCodeAPI = (userPhone) => post("/api/admin/setCode",userPhone);

//修改用户资料
export const UpdateUserAPI = (data) => post("/api/admin/updateUmsAdmin",data);

//查询日记
export const SelectDiaryAPI = (id) => post("/api/UmsDiaryController/selectDiary",id);

//查询帖子
export const SelectPostAPI = (id) => post("/api/UmsPostController/selectPost",id);

//获取医生列表
export const GetAllTalkAPI = (data) => get("/api/DoctorTalkController/getAllTalk",data);

//获取手术项目列表
export const GetAllOperationAPI = () => get("/api/OperationController/getAllOperation");

//获取所有医生信息
export const GetAllDoctorAPI = () => get("/api/PmsDoctorController/selectAllDoctor");

//获取单个医生信息
export const SelectDoctorAPI = (id) => post("/api/PmsDoctorController/selectDoctor",id);

//获取所有医院信息
export const SelectAllHospitalAPI = (data) => get("/api/PmsHospitalController/selectAll",data);

//获取单个医院信息
export const SelectHospitalAPI = (id) => get("/api/PmsHospitalController/selectHospital",id);

//商品排行榜
export const GetProductRankingAPI = (id) => get("/api/getProductRanking",id);

//根据类型来获取商品信息
export const SelectByBrandAPI = (data) => get("/api/selectByBrand",data);

//根据医生ID获取项目信息
export const SelectByDoIdAPI = (doid) => get("/api/selectByDoId",doid);

//根据医院ID获取所有套餐
export const SelectByHosIdAPI = (hospitalId) => get("/api/selectByHosId",hospitalId);

//获取所有上架的商品
export const GoodListAPI = () => get("/api/selectByStatus");

//搜索框模糊查询商品
export const SelectProductAPI = (title) => get("/api/selectProduct",title);

//根据商品ID获取商品信息
export const SelectProductByIdAPI = (productId) => get("/api/selectProductById",productId);

//添加发布问题
export const PublicAskAPI = (data) => get("/api/insert",data);

//写日记
export const InsertUmsDiaryAPI = (data) => get("/api/insertUmsDiary",data);

//查询问题发布
export const SelectQuestionByStatusAPI = (data) => get("/api/selectQuestionByStatus",data);

//项目展示
export const FindAllProjectAPI = (stateId) => get("/api/ProjectRecruitmentController/findAllPR",stateId);

//获取微整项目列表
export const getAllVOperationAPI = () => get("/api/VOperationController/getAllVOperation");